﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace ProjetoComperio.DataLayer.Entities
{
    public class Subject
    {      
        public virtual int SubjectID { get; set; }

        [Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorMessages))]
        public virtual String Message { get; set; }

        [Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorMessages))]
        public virtual String Title { get; set; }

        public virtual String UserName { get; set; } 
              
        public virtual DateTime CreatedDate { get; set; }
               
        public virtual Int32 ContributionID { get; set; }
        public virtual Contribution Contribution { get; set; }

        public virtual ICollection<Comment> Comments { get; set; }
    }
}
